import 'package:json_annotation/json_annotation.dart';
import "shopAttrModel.dart";
part 'shopModel.g.dart';

@JsonSerializable()
class ShopModel {
  ShopModel();

  @JsonKey(name: '_id')
  String? id;
  String? title;
  String? cid;
  num? price;
  num? old_price;
  num? is_best;
  num? is_hot;
  num? is_new;
  List<ShopAttrModel>? attr;
  num? status;
  String? pic;
  String? sub_title;
  String? content;
  String? cname;
  String? specs;
  String? s_pic;
  num? count;
  int buyNumber = 1;
  bool selected = false;

  factory ShopModel.fromJson(Map<String, dynamic> json) =>
      _$ShopModelFromJson(json);
  Map<String, dynamic> toJson() => _$ShopModelToJson(this);
}
